import {request} from "../../uilts/requests.ts";

// 根据id查找 用户
export function save(data: any) {
    return request({
        url: '/save/new/class',
        method: 'post',
        data: data
    });
}

// 条件查询
export function queryClassData(data: any) {
    return request({
        url: '/query/class',
        method: 'post',
        data: data
    });
}

// 查询所有班级信息
export function allClassData() {
    return request({
        url: '/allClassData',
        method: 'get',
    });
}

// 修改班级信息
export function updateClass(data: any) {
    return request({
        url: '/update/class',
        method: 'post',
        data: data
    })
}